package com.yxb.service.common.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author
 */
public class DeviceData implements Serializable{

    private static final long serialVersionUID = 4992641655472444960L;
    /**
     * 自增ID
     */
    private Integer id;


    /**
     * 消息ID
     */
    private String msgId;


    /**
     * 消息产生时间
     */
    private LocalDateTime  msgCreatedTime;


    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 设备产品ID
     */
    private String deviceProductId;

    /**
     * 体重
     */
    private BigDecimal weight;

    /**
     * 体脂
     */
    private BigDecimal bodyFat;

    /**
     * 上报时间
     */
    private LocalDateTime reportTime;

    /**
     * 是否认领
     */
    private Boolean isAccept;

    /**
     * 认领用户ID
     */
    private String acceptUserId;

    /**
     * 用户认领时间
     */
    private LocalDateTime acceptTime;


    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public Boolean getAccept() {
        return isAccept;
    }

    public void setAccept(Boolean accept) {
        isAccept = accept;
    }

    private String feature;


    private LocalDateTime createTime;


    private LocalDateTime updateTime;


    private String updateOper;


    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getDeviceId() {
        return deviceId;
    }


    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }


    public String getDeviceProductId() {
        return deviceProductId;
    }


    public void setDeviceProductId(String deviceProductId) {
        this.deviceProductId = deviceProductId == null ? null : deviceProductId.trim();
    }


    public BigDecimal getWeight() {
        return weight;
    }


    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }


    public BigDecimal getBodyFat() {
        return bodyFat;
    }


    public void setBodyFat(BigDecimal bodyFat) {
        this.bodyFat = bodyFat;
    }


    public LocalDateTime getReportTime() {
        return reportTime;
    }


    public void setReportTime(LocalDateTime reportTime) {
        this.reportTime = reportTime;
    }


    public Boolean getIsAccept() {
        return isAccept;
    }


    public void setIsAccept(Boolean isAccept) {
        this.isAccept = isAccept;
    }


    public String getAcceptUserId() {
        return acceptUserId;
    }


    public void setAcceptUserId(String acceptUserId) {
        this.acceptUserId = acceptUserId == null ? null : acceptUserId.trim();
    }

    public LocalDateTime getAcceptTime() {
        return acceptTime;
    }


    public void setAcceptTime(LocalDateTime acceptTime) {
        this.acceptTime = acceptTime;
    }


    public String getFeature() {
        return feature;
    }


    public void setFeature(String feature) {
        this.feature = feature == null ? null : feature.trim();
    }


    public LocalDateTime getCreateTime() {
        return createTime;
    }


    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }


    public LocalDateTime getUpdateTime() {
        return updateTime;
    }


    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }


    public String getUpdateOper() {
        return updateOper;
    }


    public void setUpdateOper(String updateOper) {
        this.updateOper = updateOper == null ? null : updateOper.trim();
    }

    public LocalDateTime getMsgCreatedTime() {
        return msgCreatedTime;
    }

    public void setMsgCreatedTime(LocalDateTime msgCreatedTime) {
        this.msgCreatedTime = msgCreatedTime;
    }

    @Override
    public String toString() {
        return "DeviceData{" +
                "id=" + id +
                ", msgId='" + msgId + '\'' +
                ", msgCreatedTime=" + msgCreatedTime +
                ", deviceId='" + deviceId + '\'' +
                ", deviceProductId='" + deviceProductId + '\'' +
                ", weight=" + weight +
                ", bodyFat=" + bodyFat +
                ", reportTime=" + reportTime +
                ", isAccept=" + isAccept +
                ", acceptUserId='" + acceptUserId + '\'' +
                ", acceptTime=" + acceptTime +
                ", feature='" + feature + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", updateOper='" + updateOper + '\'' +
                '}';
    }
}